<?php
/* @var $this SiteController */

$this->pageTitle=Yii::app()->name;
?>

<h1>Welcome to <i><?php echo CHtml::encode(Yii::app()->name); ?></i></h1>

<p>Congratulations! You have successfully created your Yii application.</p>

<p>You may change the content of this page by modifying the following two files:</p>
<ul>
	<li>View file: <code><?php echo __FILE__; ?></code></li>
	<li>Layout file: <code><?php echo $this->getLayoutFile('main'); ?></code></li>
</ul>

<p>For more details on how to further develop this application, please read
the <a href="http://www.yiiframework.com/doc/">documentation</a>.
Feel free to ask in the <a href="http://www.yiiframework.com/forum/">forum</a>,
should you have any questions.</p>

<?php
//create a link
echo  CHtml::link('link text goes here',"#data", array("id"=>"fancy-link"));

//put fancybox on page
$this->widget('application.modules.admin.extensions.fancybox.EFancyBox', array(
    //'target'=>'a[rel=gallery]',
    'target'=>'a#fancy-link',
    'config'=>array(),
));

?>
<!--//use nested div structure as below-->
<div style="display:none">
<div id="data">
<p>Contents of this div appear in fancybox</p>
</div>
</div>